﻿/*******************************************************************************
* Copyright (C) JuCheap
* 
* Author: JuCheap
* Create Date: 10/18/2019 11:54:03
* Description:  
* 
* Revision History:
* Date         Author               Description
*
*********************************************************************************/

using System.ComponentModel.DataAnnotations;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 用户编辑模型
    /// </summary>
    public class UserEditRequestDto
    {
        /// <summary>
        /// Id
        /// </summary>
        [Display(Name = "Id")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 登陆账号
        /// </summary>
        [Display(Name = "登陆账号")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string LoginName { get; set; }

        /// <summary>
        /// 登陆密码
        /// </summary>
        [Display(Name = "登陆密码")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Display(Name = "姓名")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Name { get; set; }

        /// <summary>
        /// 所属部门Id
        /// </summary>
        [Display(Name = "所属部门")]
        public string DepartmentId { get; set; }
    }
}
